""""""

"""函数参数"""
def add1(num1, num2):
    print(num1, num2)
add1(1, 2)

"""可变参数"""
def add2(*nums):
    print(nums)
add2(1, 2, 4) #(1, 2, 4)

def add3(num1, *nums):
    print(num1, nums)
add3(1, 2, 3) # 1 (2, 3)

"""关键字参数"""
def add4(**nums):
    print(nums)
add4(x=1, y=2, z=3) # {'x': 1, 'y': 2, 'z': 3}

def add5(x, y, z=3, *nums1, **nums2):
    print(x, y, z, nums1, nums2)
# 1 2 3 (4, 5, 6) {'a': 1, 'b': 2}
add5(1, 2, 3, 4, 5, 6, a=1, b=2)


